import random

def generate_random_array(length):
    return [random.randint(1, 100) for _ in range(length)]
